package entity

// 留言分类
type EOpinionType int32

// 工单分类
type EWorkOrderType int32

// 角色分类
type ERoleType int32

// 工单状态
type EWorkerOrderStatus int32

// 证件类型
type ECertificateType int32

// 声明类型
type EDeclarationType int32

// 发布状态
type EPublishStatus int32

// 用户状态
type EUserStatus int32

const (
	EWorkerOrderStatus_NEW          EWorkerOrderStatus = 0 //新增
	EWorkerOrderStatus_FLOW         EWorkerOrderStatus = 1 //流转中
	EWorkerOrderStatus_APPLYDELAY   EWorkerOrderStatus = 2 //申请延期
	EWorkerOrderStatus_APPLYCHECK   EWorkerOrderStatus = 3 //申请复核
	EWorkerOrderStatus_FINISH       EWorkerOrderStatus = 4 //办结
	EWorkerOrderStatus_SUPERVISE    EWorkerOrderStatus = 5 //督办中（即流转+延期+通知）
	EWorkerOrderStatus_APPLYRELEASE EWorkerOrderStatus = 6 //申请发布审核，如果不需要申请则掠过此步

	// 角色
	EERoleType_Unknow         ERoleType = 0
	EERoleType_User           ERoleType = 1 //用户，投资者（自然人或法人）
	EERoleType_CustomerSvrice ERoleType = 2 //客服、业务员
	EERoleType_Administrator  ERoleType = 3 //管理员

	//工单类型
	EWorkOrderType_Unknown   EWorkOrderType = 0 //未知工单类型
	EWorkOrderType_Counsel   EWorkOrderType = 1 //咨询
	EWorkOrderType_Advice    EWorkOrderType = 2 //建议
	EWorkOrderType_Complaint EWorkOrderType = 3 //投诉

	//留言分类
	EOpinionType_Unknown       EOpinionType = 0 //未知留言分类
	EOpinionType_Species       EOpinionType = 1 //品种类
	EOpinionType_Business      EOpinionType = 2 //业务类
	EOpinionType_Technology    EOpinionType = 3 //技术类
	EOpinionType_CurbPlatform  EOpinionType = 4 //场外平台类
	EOpinionType_MarketService EOpinionType = 5 //市场服务类
	EOpinionType_Other         EOpinionType = 6 //其它类

	//证件类型
	ECertificateType_IDCard                ECertificateType = 1  //身份证
	ECertificateType_ChinesePassport       ECertificateType = 2  //护照
	ECertificateType_HouseholdRegister     ECertificateType = 3  //户口本
	ECertificateType_ArmyIDCard            ECertificateType = 4  //军官证
	ECertificateType_OfficersCard          ECertificateType = 5  //警官证
	ECertificateType_SoldiersCard          ECertificateType = 6  //士兵证
	ECertificateType_HkMacaoPermit         ECertificateType = 7  //港澳地区居民来往内地通行证
	ECertificateType_MTP                   ECertificateType = 8  //台胞证 Mainland Travel Permit for Taiwan Residents
	ECertificateType_HkMoTwResidencePermit ECertificateType = 9  //港澳台居民居住证
	ECertificateType_ForeignersPassport    ECertificateType = 10 //外国护照
	ECertificateType_Other                 ECertificateType = 11 //其它

	//声明文本类型
	EDeclarationType_Unknown      EDeclarationType = 0 //未知
	EDeclarationType_Registration EDeclarationType = 1 //注册协议
	EDeclarationType_Platform     EDeclarationType = 2 //平台协议
	EDeclarationType_Message      EDeclarationType = 3 //留言须知

	//发布状态
	EPublishStatus_Unpublished EPublishStatus = 0 //未发布
	EPublishStatus_Published   EPublishStatus = 1 //已发布
	EPublishStatus_Offline     EPublishStatus = 2 //已下线
	EPublishStatus_Pause       EPublishStatus = 3 //暂停
	EPublishStatus_Deleted     EPublishStatus = 4 //已删除

	//登陆方式
	LoginType_MobilePwd     int = 0 //0 手机号+密码
	LoginType_MobileVercode int = 1 //1 手机号+短信码

	//站内信 -- 读取标志
	EReadFlag_All    int = 0 //0 全部，不限
	EReadFlag_Read   int = 1 //1 未读
	EReadFlag_UnRead int = 2 //2 已读

	//站内信 -- 站内信类型
	EMessageType_ToAll      int = 0 //站内信类型 0,不限
	EMessageType_ToOperator int = 1 //站内信类型 1：发送给业务员
	EMessageType_ToCustomer int = 2 //站内信类型 2，发送给客户
	EMessageType_ToAdmin    int = 3 //站内信类型 2，发送给管理员(有管理身份的均收到)

	//站内信动作
	EMessageAction_New    int = 0 //新建，保存草稿（未发送）
	EMessageAction_Send   int = 1 //发送
	EMessageAction_Delete int = 2 //删除
	EMessageAction_Recall int = 3 //召回已发送

	//用户状态
	EUserStatus_Normal         EUserStatus = 0 //正常
	EUserStatus_Deregistration EUserStatus = 1 //注销
	EUserStatus_Lock           EUserStatus = 2 //锁定

	// Redis key
	RedisCustomerBindMobileEvidence = "customer_bind_mobile_" // key: customer_bind_mobile_{user_id} value: evidence

)
